#ifndef _MCTRL_H
#define _MCTRL_H

/**
 * Motor Specifics
 **/
#define MCTRL_PORT              P1OUT
#define MCTRL_DDR               P1DIR

#define MCTRL_LEFT_FORWARD      BIT(2)
#define MCTRL_LEFT_BACKWARD     BIT(1)
#define MCTRL_RIGHT_FORWARD     BIT(5)
#define MCTRL_RIGHT_BACKWARD    BIT(4)

/**
 * Motor Functions -- PUBLIC
 */
extern void MCTRL_Init(void);
extern void MCTRL(signed int dir, signed int speed);
extern void MCTRL_DriveForward(void);
extern void MCTRL_DriveLeft(void);
extern void MCTRL_DriveRight(void);
extern void MCTRL_DriveBackward(void);
extern void MCTRL_Stop(void);
extern void MCTRL_SpinLeft(void);
extern void MCTRL_SpinRight(void);

#endif // _MCTRL_H
